package com.bloveoacom.weichi.adapter;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;


import com.bloveoacom.util.DataUtil;
import com.bloveoacom.util.GlideUtil;
import com.bloveoacom.util.NumberUtil;
import com.bloveoacom.util.StringUtils;
import com.bloveoacom.weichi.R;
import com.bloveoacom.weichi.bean.NewsPostBean;
import com.bloveoacom.weight.MultiImageView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import static com.bloveoacom.util.CalendarUtil.getTime2;

/**
 * author: yjl
 * e-mail: 1271901673@qq.com
 * time  : 2018/9/20
 * desc  :
 */
public class MyPostAdapter extends BaseQuickAdapter<NewsPostBean,BaseViewHolder> {
    public MyPostAdapter(int layoutResId, @Nullable List<NewsPostBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NewsPostBean item) {
        DataUtil.setItemView2(mContext,helper,item,2);
        helper.setVisible(R.id.group2,false);
        helper.setVisible(R.id.group,true);
    }

}
